From b8a752c7516f1cb773ae25789ce4f5424692ac72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 19 Feb 2020 07:35:40 +0100 Subject: [PATCH] filechooserwidget: Allow typing a location in recent mode This is triggered by typing / or hitting Ctrl+L. Since we don't have a visual indicator for this mode right now anyway, the reason for not allowing it in recent mode cited in the comment just above the early-exit is irrelevant. Closes #2178 --- gtk/gtkfilechooserwidget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 779ae6d5ce..6d2c54ecb0 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2650,12 +2650,11 @@ location_switch_to_filename_entry (GtkFileChooserWidget *impl) { GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl); - /* when in search or recent files mode, we are not showing the + /* when in search mode, we are not showing the * browse_header_box container, so there's no point in switching * to it. */ - if (priv->operation_mode == OPERATION_MODE_SEARCH || - priv->operation_mode == OPERATION_MODE_RECENT) + if (priv->operation_mode == OPERATION_MODE_SEARCH) return; gtk_revealer_set_reveal_child (GTK_REVEALER (priv->browse_header_revealer), TRUE); -- 2.30.2